package com.pagoda.nerp.trade.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.apache.commons.lang.builder.ToStringBuilder;

import java.util.Date;

@JsonSerialize(include= JsonSerialize.Inclusion.NON_NULL)
public class MdQualityRecord {
    /**
     * 质检申请记录ID,非自增,单据类型编码：QUALITY_RECORD_ID
     *
     * @mbg.generated
     */
    private Integer qualityRecordId;

    /**
     * 质检申请记录单据号，单据类型编码：QUALITY_RECORD_NO
     *
     * @mbg.generated
     */
    private String qualityRecordNo;

    /**
     * 供应商供应商品清单ID
     *
     * @mbg.generated
     */
    private Integer vendorGoodsId;

    private Integer vendorId;

    private Integer goodsId;

    /**
     * 地域
     * @mbg.generated
     */
    private String area;

    /**
     * 规模
     *
     * @mbg.generated
     */
    private String scale;

    /**
     * 产量
     *
     * @mbg.generated
     */
    private String yield;

    /**
     * 价格
     *
     * @mbg.generated
     */
    private Long price;

    /**
     * 质检方式 A 产地质检  B 快递送检 
     *
     * @mbg.generated
     */
    private String qtyType;

    /**
     * 产地地址
     *
     * @mbg.generated
     */
    private String address;

    /**
     * 产地联系人姓名
     *
     * @mbg.generated
     */
    private String contacts;

    /**
     * 产地联系人手机号
     *
     * @mbg.generated
     */
    private String phoneNumber;

    /**
     * 快递公司 
     *
     * @mbg.generated
     */
    private String expressCompany;

    /**
     * 快递单号
     *
     * @mbg.generated
     */
    private String expressNumber;

    /**
     * 费用承担方
     *
     * @mbg.generated
     */
    private String costBelong;

    /**
     * 质检方式编号
     *
     * @mbg.generated
     */
    private Integer qualityRecordTypeId;

    /**
     * 质检申请状态
            （
            A 质检通过，
            B 未申请质检，
            C 质检未通过，
            D 等待质检，
            E 已取消）
     *
     * @mbg.generated
     */
    private String status;

    /**
     * 申请子账户ID
     */
    private int mdAccountId;

    /**
     * 质检申请对应质检平台编号
     *
     * @mbg.generated
     */
    private String qualityPlatId;

    /**
     * 质检申请日期
     *
     * @mbg.generated
     */
    private Date applyDate;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * 修改时间
     *
     * @mbg.generated
     */
    private Date modifyTime;

    /**
     * 水果信息
     *
     * @return
     */
    private String goodsName;

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public Integer getQualityRecordId() {
        return qualityRecordId;
    }

    public void setQualityRecordId(Integer qualityRecordId) {
        this.qualityRecordId = qualityRecordId;
    }

    public String getQualityRecordNo() {
        return qualityRecordNo;
    }

    public void setQualityRecordNo(String qualityRecordNo) {
        this.qualityRecordNo = qualityRecordNo == null ? null : qualityRecordNo.trim();
    }

    public Integer getVendorGoodsId() {
        return vendorGoodsId;
    }

    public void setVendorGoodsId(Integer vendorGoodsId) {
        this.vendorGoodsId = vendorGoodsId;
    }

    public Integer getVendorId() {
        return vendorId;
    }

    public void setVendorId(Integer vendorId) {
        this.vendorId = vendorId;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area == null ? null : area.trim();
    }

    public String getScale() {
        return scale;
    }

    public void setScale(String scale) {
        this.scale = scale == null ? null : scale.trim();
    }

    public String getYield() {
        return yield;
    }

    public void setYield(String yield) {
        this.yield = yield == null ? null : yield.trim();
    }

    public Long getPrice() {
        return price;
    }

    public void setPrice(Long price) {
        this.price = price;
    }

    public String getQtyType() {
        return qtyType;
    }

    public void setQtyType(String qtyType) {
        this.qtyType = qtyType == null ? null : qtyType.trim();
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public String getContacts() {
        return contacts;
    }

    public void setContacts(String contacts) {
        this.contacts = contacts == null ? null : contacts.trim();
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber == null ? null : phoneNumber.trim();
    }

    public String getExpressCompany() {
        return expressCompany;
    }

    public void setExpressCompany(String expressCompany) {
        this.expressCompany = expressCompany == null ? null : expressCompany.trim();
    }

    public String getExpressNumber() {
        return expressNumber;
    }

    public void setExpressNumber(String expressNumber) {
        this.expressNumber = expressNumber == null ? null : expressNumber.trim();
    }

    public String getCostBelong() {
        return costBelong;
    }

    public void setCostBelong(String costBelong) {
        this.costBelong = costBelong == null ? null : costBelong.trim();
    }

    public Integer getQualityRecordTypeId() {
        return qualityRecordTypeId;
    }

    public void setQualityRecordTypeId(Integer qualityRecordTypeId) {
        this.qualityRecordTypeId = qualityRecordTypeId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public String getQualityPlatId() {
        return qualityPlatId;
    }

    public void setQualityPlatId(String qualityPlatId) {
        this.qualityPlatId = qualityPlatId == null ? null : qualityPlatId.trim();
    }

    public Date getApplyDate() {
        return applyDate;
    }

    public void setApplyDate(Date applyDate) {
        this.applyDate = applyDate;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public int getMdAccountId() {

        return mdAccountId;
    }

    public void setMdAccountId(int mdAccountId) {
        this.mdAccountId = mdAccountId;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}